package com.spring.AOP;

// 首先定义一个类来封装方法信息
class MethodInfo {
    private String methodName;
    private Object[] parameters;
    private Class<?>[] parameterTypes;

    // 构造方法、getter和setter
    public MethodInfo(String methodName, Object[] parameters, Class<?>[] parameterTypes) {
        this.methodName = methodName;
        this.parameters = parameters;
        this.parameterTypes = parameterTypes;
    }

    // getter和setter方法

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Object[] getParameters() {
        return parameters;
    }

    public void setParameters(Object[] parameters) {
        this.parameters = parameters;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    public void setParameterTypes(Class<?>[] parameterTypes) {
        this.parameterTypes = parameterTypes;
    }
    // ...
}


